package com.zb.entity;

import java.util.ArrayList;
import java.util.List;



/**
 * OaDepartment entity. @author MyEclipse Persistence Tools
 */

public class Department{


	private Integer id;
	private User user;
	private String deptname;
	private Department perdept;
	private Integer rank;
	private String simplename;
	private String phoneno;
	private String movephoneno;
	private String faxno;
	private List<Department> children = new ArrayList<Department>();
	private String iconCls="icon-server";
	
	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	private String text;
	private String state="open";
	
	public void addChild(Department dept){
		children.add(dept);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getDeptname() {
		return deptname;
	}

	public void setDeptname(String deptname) {
		this.text=deptname;
		this.deptname = deptname;
	}

	public Department getPerdept() {
		return perdept;
	}

	public void setPerdept(Department perdept) {
		this.perdept = perdept;
	}

	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}

	public String getSimplename() {
		return simplename;
	}

	public void setSimplename(String simplename) {
		this.simplename = simplename;
	}

	public String getPhoneno() {
		return phoneno;
	}

	public void setPhoneno(String phoneno) {
		this.phoneno = phoneno;
	}

	public String getMovephoneno() {
		return movephoneno;
	}

	public void setMovephoneno(String movephoneno) {
		this.movephoneno = movephoneno;
	}

	public String getFaxno() {
		return faxno;
	}

	public void setFaxno(String faxno) {
		this.faxno = faxno;
	}

	public List<Department> getChildren() {
		return children;
	}

	public void setChildren(List<Department> children) {
		this.children = children;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	

}